package com.feng.demo.file;

import java.io.File;
import java.io.IOException;

import com.feng.util.FileUtil;

public class ReadFromFile {
	static String str = ":):-C@_@→_→-_--_-##^_^#^o^:-I:P:D:-O^v^^_^-_-||-_-b*^_^*^ω^&gt;:-&lt;:(,-)~zZ←_←*^o^*-.-?_?e_eQ_Q(&gt;_&lt;)" +
			"(^-^)(^o^)~_~T_Thaha~π_π－O－hehe~::&gt;_&lt;::&gt;o&lt;(^３^)" +
			"\\^O^" +
			"/－O－(-.-)oh~O_o555~Yeah~≥﹏≤^v^^o^+_+&gt;_&lt;(*" +
			"&gt;.&lt;*)(╯3╰)*^o^*╭∩╮(°ο°)(？o？)(&gt;_&lt;)⊙_⊙⊙▽⊙(&gt;﹏&lt;)(ˇˍˇ)(ˇˍˇ)(☆_☆)^_^¦¦¦^=_=^*^÷^*(⊙o⊙)(～" +
			"o～)⊙ω⊙$_$(￣.￣)(≥3≤)(≥3≤)*^◎^*﹌○﹌~&gt;_&lt;~y^o^y╯▂╰=^_^=●︿●●︿●●▂●=_=〒_〒Y(^_^)Y~T_T~~w_w~y∩__∩y~^o^~≡^ˇ^" +
			"≡◑▂◐(*^@^*)≥﹏≤~_~╰_╯&gt;_&lt;¦¦¦~_~≥﹏≤(*^@^*)&gt;o&lt;╯﹏╰~`o`~~`o`~●﹏●(*^﹏^*)(=^.^=)=@~@=(=^ω^=)=￣ω￣=*^__" +
			"__^*↖(^ω^)↗@(一-一)@└(^o^)┘^－_－^(ˉ(∞)ˉ)~(*+﹏+*)~`(+﹏+)′`(*∩_∩*)′（＊￣︶￣＊）~@^_^@~~~" +
			"\\(^_^)/~~~~~^_^~~~~~O(" +
			"∩_∩)O~~＜（－︿－）＞";
	public static void main(String[] args) throws IOException {
		String str1 = new ReadFromFile().redFromFile();
		System.out.println(str1);
		System.out.println(str);
		System.out.println(str1.equals(str));
	}
	
	private String redFromFile() throws IOException{
		String pathname = this.getClass().getResource("").getPath() + "str.txt";
		return FileUtil.readFile2String(new File(pathname));
	}
}
